import numpy as np

array = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])

print(array)
print(array.shape)
print(array.size)
print(array.ndim)
print(array[1, 1])
array[1, 1] = 10
print(array)
print(array[1])
print(array[:, 1])
print(array[0, 0:2])

array2 = array.copy()
array2[1,1] = 100
print(array2)
print(array)

array3 = np.arange(0,100,10)
print(array3)

mask = np.array([0,0,0,1,1,1,1,0,0,1], dtype=bool)
print(mask)

print(array3[mask])

random_array = np.random.rand(10)
print(random_array)

mask1 = random_array > 0.5
print(mask1)

print(array3[mask1])

tang_array = np.array([10,20,30,40,50,60])
print(tang_array > 30)
print(np.where(tang_array > 30))

print(tang_array[np.where(tang_array > 30)])

